xl: fix broken cpupool-numa-split (part 2)
authorAndre Przywara <andre.przywara@amd.com>
Tue, 1 Feb 2011 19:07:07 +0000 (19:07 +0000)
committerAndre Przywara <andre.przywara@amd.com>
Tue, 1 Feb 2011 19:07:07 +0000 (19:07 +0000)
Before the creation and population of a new CPU pool we have to clear
the poolid variable, which still contains the value from the previous
iteration.

This fixes the execution of xl cpupool-numa-split on machines with more
than two nodes.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Acked-by: juergen.gross@ts.fujitsu.com
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c

index 1f4cae9d9c678a3b31bf2b1f1471538c4c56e60d..ea511177afba2f887a5030e534bb08c0ea301e92 100644 (file)
@@ -5814,6 +5814,7 @@ int main_cpupoolnumasplit(int argc, char **argv)
 
         snprintf(name, 15, "Pool-node%d", node);
         libxl_uuid_generate(&uuid);
+        poolid = 0;
         ret = -libxl_create_cpupool(&ctx, name, schedid, cpumap, &uuid, &poolid);
         if (ret) {
             fprintf(stderr, "error on creating cpupool\n");